// const REQUEST_ADDRESS = '47.102.85.49';
const REQUEST_ADDRESS = '192.168.0.103'; // api 请求地址

module.exports = {
  env: {
    runtime: {
      host: REQUEST_ADDRESS,
      port: 9000,
      hashRouter: false,
    },
    baseURL: 'open.feishu.cn', // 用于区分环境，默认boe
    app_id: 'cli_a03ee1eb59b9500e',
    app_secret: 'W50q9f8mhOYxx7o1clYuEdIBEiTYXc0c',
    request_base_url: `http://${REQUEST_ADDRESS}:3000/`, // 请求api地址
    // request_base_url: 'http://192.168.0.104:3000/', // 请求api地址
    redirect_url: 'http://47.102.85.49:3000/auth/v2/redirectUrl',
    api: {
      AUTH: {
        V2_GET_APP_TOKEN: '/auth/v2/getAppAccessToken', // get or post
        V2_REDIRECT_URL: '/auth/v2/redirectUrl', // get
        V2_JS_SDK: '/auth/v2/authenSdk', // get
        V2_DOC_SDK: '/auth/v2/authenDocSdk', // get
        V2_QUERY_USERINFO: '/auth/v2/queryUserInfo', // delete
        V2_CLEAR_INFO: '/auth/v2/clearAppInfo',
      },
      DOCS: {
        DRIVE: {
          V1_ROOT_FOLDER: '/doc/v1/root_folder',
          V1_FOLDER_CHILDREN: '/doc/v1/folder/children',
          V1_FILES_UPLOAD_ALL: `http://${REQUEST_ADDRESS}:3000/suite/v1/files/upload_all`,
          V1_FOLDER: '/suite/v1/folder/{0}',
        },
        DOC: {
          V1_META: '/doc/v1/meta/{0}',
          V1_FILE: '/doc/v1/file/{0}',
          V1_CREATE: '/doc/v1/create',
        },
        SHEET: {
          V1_FILE: '/sheet/v1/file/{0}',
          V1_CREATE: '/sheet/v1/create',
        },
      },
    },
  },
};
